#!/bin/bash
 while [ 1 ]
 do
     free >> mem.log
     sleep 2
 done